package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteFrontPresentLog table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteFrontPresentLog"
 */

public abstract class BaseAnteFrontPresentLog  implements Serializable {
	private static final long serialVersionUID = 1L;
	public static String REF = "AnteFrontPresentLog";
	public static String PROP_CARD_TYPE = "CardType";
	public static String PROP_LOG_ID = "LogId";
	public static String PROP_ID_CARD = "IdCard";
	public static String PROP_PRESENT_ID = "PresentId";
	public static String PROP_RESPONSE_MESSAGE = "ResponseMessage";
	public static String PROP_LOGIN_ID = "LoginId";
	public static String PROP_NAME = "Name";
	public static String PROP_COUNTER_ID = "CounterId";
	public static String PROP_RESPONSE_CODE = "ResponseCode";
	public static String PROP_PRESENT_TIME = "PresentTime";
	public static String PROP_MONEY = "Money";


	// constructors
	public BaseAnteFrontPresentLog () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteFrontPresentLog (Long logId) {
		this.setLogId(logId);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteFrontPresentLog (
		Long logId,
		java.lang.String counterId,
		java.lang.String presentId,
		java.lang.String loginId,
		java.lang.Integer cardType,
		java.lang.String idCard,
		java.lang.String name,
		java.lang.Integer money,
		java.util.Date presentTime) {

		this.setLogId(logId);
		this.setCounterId(counterId);
		this.setPresentId(presentId);
		this.setLoginId(loginId);
		this.setCardType(cardType);
		this.setIdCard(idCard);
		this.setName(name);
		this.setMoney(money);
		this.setPresentTime(presentTime);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private Long logId;

	// fields
	private java.lang.Integer cardType;
	private java.lang.String counterId;
	private java.lang.String idCard;
	private java.lang.String loginId;
	private java.lang.Integer money;
	private java.lang.String name;
	private java.lang.String presentId;
	private java.util.Date presentTime;
	private java.lang.String responseCode;
	private java.lang.String responseMessage;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="LogId"
     */
	public Long getLogId () {
		return logId;
	}

	/**
	 * Set the unique identifier of this class
	 * @param logId the new ID
	 */
	public void setLogId (Long logId) {
		this.logId = logId;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: CardType
	 */
	public java.lang.Integer getCardType () {
		return cardType;
	}

	/**
	 * Set the value related to the column: CardType
	 * @param cardType the CardType value
	 */
	public void setCardType (java.lang.Integer cardType) {
		this.cardType = cardType;
	}



	/**
	 * Return the value associated with the column: CounterId
	 */
	public java.lang.String getCounterId () {
		return counterId;
	}

	/**
	 * Set the value related to the column: CounterId
	 * @param counterId the CounterId value
	 */
	public void setCounterId (java.lang.String counterId) {
		this.counterId = counterId;
	}



	/**
	 * Return the value associated with the column: IdCard
	 */
	public java.lang.String getIdCard () {
		return idCard;
	}

	/**
	 * Set the value related to the column: IdCard
	 * @param idCard the IdCard value
	 */
	public void setIdCard (java.lang.String idCard) {
		this.idCard = idCard;
	}



	/**
	 * Return the value associated with the column: LoginId
	 */
	public java.lang.String getLoginId () {
		return loginId;
	}

	/**
	 * Set the value related to the column: LoginId
	 * @param loginId the LoginId value
	 */
	public void setLoginId (java.lang.String loginId) {
		this.loginId = loginId;
	}



	/**
	 * Return the value associated with the column: Money
	 */
	public java.lang.Integer getMoney () {
		return money;
	}

	/**
	 * Set the value related to the column: Money
	 * @param money the Money value
	 */
	public void setMoney (java.lang.Integer money) {
		this.money = money;
	}



	/**
	 * Return the value associated with the column: Name
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: Name
	 * @param name the Name value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}



	/**
	 * Return the value associated with the column: PresentId
	 */
	public java.lang.String getPresentId () {
		return presentId;
	}

	/**
	 * Set the value related to the column: PresentId
	 * @param presentId the PresentId value
	 */
	public void setPresentId (java.lang.String presentId) {
		this.presentId = presentId;
	}



	/**
	 * Return the value associated with the column: PresentTime
	 */
	public java.util.Date getPresentTime () {
		return presentTime;
	}

	/**
	 * Set the value related to the column: PresentTime
	 * @param presentTime the PresentTime value
	 */
	public void setPresentTime (java.util.Date presentTime) {
		this.presentTime = presentTime;
	}



	/**
	 * Return the value associated with the column: ResponseCode
	 */
	public java.lang.String getResponseCode () {
		return responseCode;
	}

	/**
	 * Set the value related to the column: ResponseCode
	 * @param responseCode the ResponseCode value
	 */
	public void setResponseCode (java.lang.String responseCode) {
		this.responseCode = responseCode;
	}



	/**
	 * Return the value associated with the column: ResponseMessage
	 */
	public java.lang.String getResponseMessage () {
		return responseMessage;
	}

	/**
	 * Set the value related to the column: ResponseMessage
	 * @param responseMessage the ResponseMessage value
	 */
	public void setResponseMessage (java.lang.String responseMessage) {
		this.responseMessage = responseMessage;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteFrontPresentLog)) return false;
		else {
			AnteFrontPresentLog anteFrontPresentLog = (AnteFrontPresentLog) obj;
			if (null == this.getLogId() || null == anteFrontPresentLog.getLogId()) return false;
			else return (this.getLogId().equals(anteFrontPresentLog.getLogId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getLogId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getLogId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}